package descentFly.away3D4.chips
{
	import away3d.containers.ObjectContainer3D;
	import away3d.entities.Mesh;
	import away3d.loaders.Loader3D;
	import away3d.materials.ColorMaterial;
	import away3d.tools.Explode;
	import away3d.tools.utils.Bounds;
	
	import descentFly.away3D4.df_loadSection;
	import descentFly.df_space;
	
	import flash.geom.Matrix3D;
	import flash.geom.Vector3D;
	
	import jiglib.geometry.JBox;
	import jiglib.physics.RigidBody;
	import jiglib.plugin.away3d4.Away3D4Mesh;
	
	public class df_chip3DS extends df_chipModel {
		public function df_chip3DS(a_space:df_space, a_options:Object) {
			super(a_space, a_options);
		}
		
		override protected function initModel(a_model:ObjectContainer3D):void {
			if (a_model)
				super.initModel(a_model);
			else {
				var ls		: df_loadSection;
				ls = new df_loadSection();
				a_model = ls.addLoader3D(options.url);
				
				ls.endSection(function (): void {
					initModel(a_model);
				});
			}
		}
		
	}
}